package com.xn.app.muying.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.xn.app.muying.R;
import com.xn.app.muying.util.BaseActivity;
import com.zhuge.analysis.stat.ZhugeSDK;

/**
 * 我的订单
 * Created by Administrator on 2016/12/1.
 */
public class MineOrderActivity extends BaseActivity implements View.OnClickListener {

    //返回键
    private ImageView img_back=null;
    //标记
    public static String sign;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mineorder);
        RelativeLayout monitor = (RelativeLayout) findViewById(R.id.activity_mineorder_monitor);
        RelativeLayout vip = (RelativeLayout) findViewById(R.id.activity_mineorder_vip);
        img_back=(ImageView)findViewById(R.id.img_back);
        img_back.setOnClickListener(this);
        monitor.setOnClickListener(this);
        vip.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            //胎心监护订单
            case R.id.activity_mineorder_monitor:
                sign = "";
                intent.setClass(MineOrderActivity.this, MineOrderDetailActivity.class);
                startActivity(intent);
                break;
            //会员订单
            case R.id.activity_mineorder_vip:
                sign = "vip";
                intent.setClass(MineOrderActivity.this, MineOrderDetailActivity.class);
                startActivity(intent);
                break;
            case R.id.img_back:
                finish();
                break;
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
